<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of LanguageController
 *
 * @author Sorasak Siangsanan
 */
class LanguagesController extends Controller {
    
    public function actionTh() {
        $session = new CHttpSession;
        $session->open();
        $session['sess_lang'] = 'th';
        $this->redirect(array('index/index'));
    }
    
    public function actionEn() {
        $session = new CHttpSession;
        $session->open();
        $session['sess_lang'] = 'en';
        $this->redirect(array('index/index'));
    }
    
}
